﻿using System.ComponentModel;
using System.Web.Script.Services;
using System.Web.Services;

namespace HeThongSpa.Webservice
{
    /// <summary>
    /// Summary description for wsSelectAll
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    [ScriptService]
    public class wsSelectAll : WebService
    {

        [WebMethod(EnableSession = true)]
        public string CheckSession()
        {
            var sessionUserName = Session["username"] == null ? "" : Session["username"].ToString().Trim();
            return (sessionUserName + ";" + (Session.Timeout * 60 * 1000));// Timeout tính ra milliseconds
        }
    }
}
